import "./header.css";
import tpl from "./header.tpl";

import headerNav from "./header-nav/header-nav";

import {tplReplace} from "../../utils/tools";

export default (navData)=>{
    return{
        name:"header",
        tpl(){
            return tplReplace(tpl(),{
                nav:headerNav(navData).tpl()
            })
        }
    }
}
